import { createAxiosByInterceptors } from './request'

const WEB_URL = {
    // baseURL: "http://localhost:8088",
    baseURL: process.env.VUE_APP_BASE_URL
}

const web = createAxiosByInterceptors(WEB_URL)

const configToken = () => {
    web.defaults.headers.common['token'] = sessionStorage.getItem('token')
}

export {web, configToken}